<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller 
{
	public function index()
	{
		$this->load->model('Products_model');
		$data['featured_products'] = $this->Products_model->getFeaturedProducts();
		
		$this->load->view('head');
		$this->load->view('header', array('activeLink' => "index"));   
        $this->load->view('carousel');
        $this->load->view('featuredproducts', $data);
        $this->load->view('footer');   
	}
}
